package com.school.empsys.model;

import java.util.Date;

/**
 * 员工考勤
 */
public class EmpAttendance extends BaseEntity<Integer> {

    /**
     * 员工id
     */
    private Integer userId;

    /**
     * 考勤日期
     */
    private Date date;

    /**
     * 考勤状态，NORMAL：正常；LATE：迟到；LEAVE_EARLY：早退；ABSENTEEISM：旷工；ASK_FOR_LEAVE：请假
     */
    private String status;

    /**
     * 上班打卡时间
     */
    private Date punchTimeAtWork;

    /**
     * 下班打卡时间
     */
    private Date punchTimeAfterWork;

    private User user;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getPunchTimeAtWork() {
        return punchTimeAtWork;
    }

    public void setPunchTimeAtWork(Date punchTimeAtWork) {
        this.punchTimeAtWork = punchTimeAtWork;
    }

    public Date getPunchTimeAfterWork() {
        return punchTimeAfterWork;
    }

    public void setPunchTimeAfterWork(Date punchTimeAfterWork) {
        this.punchTimeAfterWork = punchTimeAfterWork;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}